home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-08-17 | 8.3 KB | 227 lines | [TEXT/ALFA] |
- ================================================================================
- = What's Going On Here?
- ================================================================================
-
- HTML Mode (suffix ".html") is for editing HyperText Markup Language
- documents. It is not a previewer, nor is it a verifier. If you don't
- know about HTML or the WorldWideWeb, FTP to ftp.ncsa.mosaic.edu and
- poke around in the Mosaic and Mac directories, or FTP to ftp.einet.net
- and poke around in einet/mac/macweb, to start with.
-
- This is not a complete tool for editing HTML 2.0. There are several
- features for which you are going to have to enter tags by hand.
- However more are being added all the time, and I expect that it will
- be a full HTML 2.0 tool by late in 1994 (this is a spare-time
- project).
-
- To have HTML mode loaded automatically, simply select Install:HTML
- under Alpha's Utils menu. This will place several commands at the
- bottom of userStartup.tcl, the user customization file, in Alpha's top
- directory. That's all you need to do to .
-
- When you use this package you will see bullet characters (•,
- option-8) being dribbled near where you insert tags. These are
- supposed to be a feature, honest. The tab key will take you to the
- next one. For example, if you insert a header, the cursor will be
- inside the header tag, with a bullet after it. Type in the header
- text and hit tab to go to the bullet (and automatically delete the
- bullet). If you like, you may ignore the bullets and at any time
- select "Remove Tab Marks" from the menu to eliminate all of them. If
- you never want these at all, turn off the flag htmlUseTabMarks (or set
- it to 0 -- see the section on User-Settable Variables).
-
- Without Peter Keleher's development and ongoing enhancements to Alpha
- this wouldn't have been possible in the first place. I am also
- indebted to the authors of html.el for GNU Emacs and latex.tcl for
- Alpha, from whom I originally took ideas and some tcl code.
-
- I want feedback. I'm Scott Brim <swb@nr-tech.cit.cornell.edu>. This
- is "opinionware" -- if you use it regularly, you should tell me your
- opinion.
-
-
-
- ================================================================================
- = User-Settable Flags and Variables
- ================================================================================
-
- HTML mode is intended to be customizable. You can modify its
- behavior using the Flags menu (click on the little flag), or you can
- initialize to your preferred defaults in userStartup.tcl (described
- above). If you initialize them in userStartup.tcl, be sure to set
- them after sourcing html.tcl.
-
- Alpha will add lines something like the following to userStartup.tcl
- when you "install" HTML:
-
- # The following lines install the HyperText Markup Language Mode
- source "Macintosh HD:Public:Alpha folder:Tcl:UserCode:html.tcl"
- catch {htmlDummy}
- enableMenuItem -m install HTML 0
-
- After Alpha has done that, below them you can yourself add, for
- example:
-
- set HTMLmodeVars(htmlUseLowerCase) 1
- set HTMLmodeVars(htmlDLEntries) 5
-
-
- To set a flag *off*, set it to 0. To set a flag *on*, set it to 1.
- Variables can be set to any reasonable value.
-
- FLAGS
- -----
-
- htmlUseCtlCmd - For use with international keyboards.
- If 0, will use option-cmd and shift-option-cmd
- in keybindings. If 1, will use ctl-cmd and
- shift-ctl-cmd. This is to support use of the
- international keyboard. This area will probably
- see some improvement in the future. The default
- is 0, i.e. to use the US keyboard.
-
- htmlCompactDiscLists - If set, discursive lists will default to
- "compact" format and the alternate key binding
- will be set to create the more open form. The
- default is 0, i.e. discursive lists will not be
- compact.
-
- htmlUseLowerCase - if 0, tags will be like <P>; if 1, like <p>
- default: 0
-
- htmlUseHeadAndBody - if 0, "title" just generates <title></title>. If
- greater than 0, "title" will also generate <html>,
- <head> and <body>. The default is 0.
-
- htmlUseTabMarks - if 0, will not insert the • characters. The
- default is 1, to insert them.
-
- VARIABLES
- ---------
-
- htmlDLEntries - the default number of entries for a new discursive
- list. The default is 3.
-
-
-
- ================================================================================
- = Default Key Bindings
- ================================================================================
-
- This section assumes you are using all default options.
-
- Almost all are on Option-Cmd, except for a few conflicts which I put
- on Shift-Cmd-Option (note, if htmlUseCtlCmd is set, they will be on
- Ctl-Cmd). I have bound the ones which I *think* are used less often
- on average. Not everything is on keys, so explore the menus too.
-
- Tabs are not supposed to be in HTML files, so, as in LaTeX, <tab> is
- used to get to the next little "•" inserted by some of the commands.
-
- bind 0x30 nextTabStop "HTML"
- bind 0x30 <s> previousTabStop "HTML"
-
- Enter & cmd-opt-enter for new paragraph (c-o-enter leaves no space)
-
- bind Enter htmlParagraph "HTML"
- bind Enter <co> htmlParaMark "HTML"
-
- Put new paragraph on control-M for those with awkward enter keys
-
- bind 'm' <z> htmlParaMark "HTML"
-
- Break on "!"
-
- bind '1' <sco> htmlBreak "HTML"
-
- Comment on cmd-opt-semicolon (shades of GNU Emacs)
-
- bind 0x29 <co> htmlComment "HTML"
-
- These should be obvious from the names...
-
- bind '0' <co> htmlTagTitle "HTML"
- bind '1' <co> htmlAddHeader1 "HTML"
- bind '2' <co> htmlAddHeader2 "HTML"
- bind '3' <co> htmlAddHeader3 "HTML"
- bind '4' <co> htmlAddHeader4 "HTML"
- bind '5' <co> htmlAddHeader5 "HTML"
- bind '6' <co> htmlAddHeader6 "HTML"
-
- bind 'e' <co> htmlAddEmphasized "HTML"
- bind 's' <co> htmlAddStrong "HTML"
- bind 'b' <co> htmlAddBold "HTML"
- bind 'i' <co> htmlAddItalic "HTML"
- bind 'f' <co> htmlAddFixed "HTML"
- bind 'k' <co> htmlAddKeyboard "HTML"
-
- Note that "underlined" is in the menus but not in the key bindings.
-
- These are UL, OL, MENU and DIR. The first entry is set up
- automatically in a new list. The 'n' to add more entries is for
- "eNtry".
-
- bind 'n' <co> htmlAddListEntry "HTML"
- bind 'u' <co> htmlAddUnnumbered "HTML"
- bind 'o' <co> htmlAddNumbered "HTML"
- bind 'm' <co> htmlAddMenu "HTML"
- bind 'd' <co> htmlAddDirectory "HTML"
-
- More self-explanatory (I hope) ones...
-
- bind 'p' <co> htmlAddPreformatted "HTML"
- bind 't' <co> htmlAddTitle "HTML"
- bind 'c' <co> htmlAddCite "HTML"
- bind 'c' <sco> htmlAddCode "HTML"
- bind 'q' <co> htmlAddBlockquote "HTML"
- bind 's' <sco> htmlAddSample "HTML"
- bind 'a' <co> htmlAddAddress "HTML"
- bind 'v' <co> htmlAddVarname "HTML"
- bind 'l' <co> htmlAddListing "HTML"
- bind 'x' <co> htmlAddXMP "HTML"
-
- <DL> Glossary (no space between entries, perhaps narrower <DT>
- fields) and longer descriptions (space & width) are on G and g. An
- individual entry is "n" again but with a Shift modifier.
-
- bind 'n' <sco> htmlAddDescEntry "HTML"
- bind 'g' <co> htmlDescLong "HTML"
- bind 'g' <sco> htmlDescCompact "HTML"
-
- Anchor and Href: A "<" is something pointed at. A ">" points to it.
-
- bind ',' <co> htmlAddAnchor "HTML"
- bind '.' <co> htmlAddHref "HTML"
-
- An inline image, slightly off of ">".
-
- bind '/' <co> htmlAddImg "HTML"
-
- "<", ">" and "&" treated specially. Shift inserts the character.
-
- bind ',' <s> htmlLt "HTML"
- bind ',' <cso> htmlLT "HTML"
- bind '.' <s> htmlGt "HTML"
- bind '.' <cso> htmlGT "HTML"
- bind '7' <s> htmlAmp "HTML"
- bind '7' <cso> htmlAMP "HTML"
-
-
-
- ================================================================================
- = Other Possible Key Bindings
- ================================================================================
-
- These are not bound in the distribution. They are included here as
- samples of what is possible. For example, if you are using an
- international keyboard to produce German HTML, you might put these
- lines in your userStartup.html:
-
- bind 0x27 <s> {insertText "Ä\;"} "HTML"
- bind 0x27 {insertText "ä\;"} "HTML"
- bind 0x29 <s> {insertText "Ö\;"} "HTML"
- bind 0x29 {insertText "ö\;"} "HTML"
- bind 0x21 <s> {insertText "Ü\;"} "HTML"
- bind 0x21 {insertText "ü\;"} "HTML"
- bind 0x1b {insertText "ß\;"} "HTML"
-